import request from '@/utils/request'

export function getapi(current,size) {
    return request({
        url: '/admin/account/getAccount',
        method: 'get',
        params: { current, size }
    })
    }

export function addapi(data) {
    return request({
        url: '/admin/account/addAccount',
        method: 'post',
        data
    })
}

export function updateapi(data) {
    return request({
        url: '/admin/account/updateAccount',
        method: 'post',
        data
    })
}

export function deleteapi(accountId) {
    return request({
        url: '/admin/account/deleteAccount',
        method: 'delete',
        params: { accountId }
    })
}
  